#画 ave_sz ~ kT/J 图片。
set term png
set output "IsingModel_ave_sz.png"
set yrange [-0.1:1.1]
set xlabel "kT/J" font "Arial,15"
set ylabel "<sz>" font "Arial,15"
plot "Ising2d.txt" u 1:2 w l lw 3 t "2-d Ising Model"

#画 ave_e ~ kT/J 图片
set output "IsingModel_ave_e.png"
unset yrange
set key left top
set ylabel "<e>" font "Arial,15"
plot "Ising2d.txt" u 1:3 w l lw 3 t "2-d Ising Model"

#画一张16 x 16格子的示意图
set output "IsingModel_demon.png"
unset xtics
unset ytics
unset xlabel
unset ylabel
unset border
set dummy i,j
do for[i=0:15]{
	do for[j=0:15]{
		set arrow from j+0.5,i+0.2 to j+0.5,i+0.8 size 5,0.8 filled lw 1 lc rgbcolor "red"
	}
}
plot "rectangle.txt" with line lc rgbcolor "black" notitle

